#!/bin/sh

cd /home/weblogic/ESBClient

JAVA_HOME=/usr/java/jdk1.7.0_67
export JAVA_HOME

if [ -z "$JAVA_HOME" ]; then
echo "Please configure the JAVA_HOME!"
exit
fi

CLASSPATH=.:./bin
export CLASSPATH

JLIBDIR=./lib
export JLIBDIR

for LL in `ls $JLIBDIR/*.jar`
do
CLASSPATH=$CLASSPATH:$LL
export CLASSPATH
done


JAVA_OPTION="-Dfile.encoding=GBK"

echo Java_Option: $JAVA_OPTION
${JAVA_HOME}/bin/java ${JAVA_OPTION} -Xms128m -Xmx1024m -classpath ${CLASSPATH} channel.TCPTest &
